package com.bigdata.demo.repository;

import com.bigdata.demo.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by root on 2/27/18.
 */
@Mapper
public interface UserMapper {
    @Select("SELECT * FROM user WHERE id = #{userId}")
    public User getUser(int userId);

    @Select("SELECT * FROM user ")
    public List<User> findAll();
}
